﻿namespace GoodAdmin.System;

/// <summary>
/// 字典类型服务
/// </summary>
public interface IDictTypeService
{
    /// <summary>
    /// 添加
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Add(DictTypeAddInput input);
    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Delete(BaseIdInput input);
    /// <summary>
    /// 更新
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task Update(DictTypeUpdateInput input);
    /// <summary>
    /// 获取所有字典类型
    /// </summary>
    /// <returns></returns>
    Task<List<SysDictType>> GetDictTypeList();
    /// <summary>
    /// 获取字典树
    /// </summary>
    /// <returns></returns>
    Task<List<SysDictType>> GetDictTypeTree();

    /// <summary>
    /// 根据字典类型编码获取id
    /// </summary>
    /// <param name="Category"></param>
    /// <returns></returns>
    Task<long> GetDictTypeId(string Category);
}